#!/bin/bash

for f in *.mpg;
do
mencoder $f -ni -nosub -noautosub -alang en -oac lavc -lavcopts acodec=adpcm_ima_wav -ovc lavc -lavcopts vcodec=mpeg4:vhq=4:v4mv:vqmin=2:vbitrate=4000 -vf pp=de,crop=0:0:0:0,scale=720:-2 -o "transcode"/"`basename -s .mpg $f`.tr.mpg"
done